﻿@model IEnumerable<Bids.Core.DomainObjects.Task>
@{
    ViewBag.Title = "我参与的项目";
    Layout = "~/Views/Designer/_Layout.cshtml";
}

<div class="content normal">
    <div class="tab tab-horizontal clearfix">
        <ul>
            <li><a class="active" href="projects.html">我参与的</a></li>
            <li><a href="projects1.html">我入围的</a></li>
            <li><a href="projects2.html">我中标的</a></li>
        </ul>
    </div>

    @*<div style="margin-bottom: 10px;" class="search-bar clearfix">
        <a onclick="Search_Project();return false;" href="#" class="btn btn-info pull-right">搜索</a>
        <input type="text" lang="输入关键词快速查询项目..." onblur="if(this.value==''){this.value=this.lang;this.style.color='#888';}" onfocus="if(this.value==this.lang){this.value='';this.style.color='#333';}" style="color: #888;" value="输入关键词快速查询项目..." class="pull-right mr1" id="searchkeywords">
    </div>*@
    <table width="100%" cellspacing="0" border="0" id="ids">
        <tbody>
            <tr>
                <td height="20" bgcolor="#B8B8B8" align="center">&nbsp;<span class="font5">任务信息</span></td>
                <td width="30%" bgcolor="#B8B8B8" align="center"><span class="font5">设计金额</span></td>
                <td width="20%" bgcolor="#B8B8B8" align="center"><span class="font5">交稿数量</span></td>
                <td width="20%" bgcolor="#B8B8B8" align="center"><span class="font5">任务状态</span></td>
            </tr>

            <tr>
                @foreach (var item in Model)
                {
                    <td align="center">@item.Name</td>
                    <td align="center">@(item.Cost - item.Imprest)元</td>
                    <td align="center">@item.Contributions.Count</td>
                    <td align="center">
                        @switch (item.TaskState)
                        {
                            case Bids.Core.DomainObjects.TaskStatus.投稿中:
                            <img src="/images/tg.jpg" alt="img" width="144" height="19" />
                                break;
                            case Bids.Core.DomainObjects.TaskStatus.选稿中:
                            case Bids.Core.DomainObjects.TaskStatus.稿件确认:
                            <img src="/images/xg.jpg" alt="img" width="144" height="19" />
                                break;
                            case Bids.Core.DomainObjects.TaskStatus.已结束:
                            <img src="/images/wc.jpg" alt="img" width="144" height="19" />
                                break;

                        }
                    </td>
                }
            </tr>

        </tbody>
    </table>
    <div class="post">
        <ul>
        </ul>

    </div>
</div>
